package com.zy.dp.state.example3;

public class BlackWarnVoteState implements VoteState
{

	@Override
	public void vote(String user, String voteItemString, VoteManager voteManager)
	{
		System.out.println("禁止登录和使用系统3天");

		if (voteManager.getMapVoteCount().get(user) >= 9)
		{
			voteManager.getMapState().put(user, new BlackVoteState());
		}

	}
}